From: Ray Strode Date: Fri, 8 Oct 2021 15:08:17 +0000 (-0400) Subject: unlockDialog: Don't create AuthDialog just to finish it X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~557^2^2~29 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5d5bfe492cd81a081e80660761bac137d38133bd;p=gnome-shell.git unlockDialog: Don't create AuthDialog just to finish it If the the unlock dialog gets finished before an auth dialog is created, the code currently creates one just to tell it to finish. This commit changes the code to skip creating the auth dialog in that case. Part-of: --- diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js index 370385abc..f4c76c41a 100644 --- a/js/ui/unlockDialog.js +++ b/js/ui/unlockDialog.js @@ -872,7 +872,11 @@ var UnlockDialog = GObject.registerClass({ } finish(onComplete) { - this._ensureAuthPrompt(); + if (!this._authPrompt) { + onComplete(); + return; + } + this._authPrompt.finish(onComplete); }